#ifndef MUSICINFO_H
#define MUSICINFO_H

#include <QString>



class MusicInfo
{
public:
    MusicInfo(int iListIndex, int iMusicID, QString sMusicName,QString sSingerName,QString sAlbum,float iSongDuration,
              QString sMusicUrl,QString sMusicPic, bool loved);

    int getI_MusicID() const;

    const QString &getStrMusicName() const;

    void setStrSingerName(const QString &newStrSingerName);

    const QString &getAlbum() const;

    float getSongDuration() const;

    const QString &getMusicUrl() const;

    const QString &getMusicPic() const;

    const QString &getStrSingerName() const;

    int getIListIndex() const;
    void setiListIndex(int newListIndex);

    bool getBLoved() const;
    void setBLoved(bool newBLoved);

private:
    //播放列表索引
    int iListIndex;
    // 歌曲ID
    int I_MusicID;
    // 歌曲名称
    QString StrMusicName;
    // 歌手姓名
    QString StrSingerName;
    //专辑
    QString album;
    //时长
    float songDuration;
    //音乐链接 本地路径
    QString MusicUrl;
    //音乐封面
    QString MusicPic;
    //是否喜爱
    bool bLoved;
   // QString hash;


};

#endif // MUSICINFO_H
